import React, { Component } from 'react';

export default class MyComponent extends Component {

    state = {
        msg2father: 'hello baba',
    };

    render () {
        return (
        	<div>
                <button onClick={ () => this.props.aaa(this.state.msg2father) }>
                    say hi
                </button>
            </div>
        );
    }
    
}
